//
//  ViewController.m
//  28-HomwWork
//
//  Created by 鹏飞罗 on 16/8/22.
//  Copyright © 2016年 罗鹏飞. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *myImageView;
@property (weak, nonatomic) IBOutlet UIView *userView;

@property (weak, nonatomic) IBOutlet UIView *passwordView;
@property (weak, nonatomic) IBOutlet UITextField *userTextField;
@property (weak, nonatomic) IBOutlet UITextField *passwordTextField;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *userTextField5;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *userTextField200;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *passWordTextField200;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *passWordTextField5;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *loginButtonWidth1;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *loginButtonWidth85;

@property (weak, nonatomic) IBOutlet UILabel *orLable;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    _myImageView.transform = CGAffineTransformMakeTranslation(0, -100);
    _userView.transform = CGAffineTransformMakeScale(0.1, 1);
    _passwordView.transform = CGAffineTransformMakeScale(0.1, 1);
    

    
    
    _orLable.transform = CGAffineTransformMakeScale(0.1, 1);
    
}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear: animated];
    _userTextField5.priority = 751;
    _passWordTextField5.priority = 751;
    _loginButtonWidth85.priority = 751;
    _userTextField200.priority = 750;
    _passWordTextField200.priority = 750;
    _loginButtonWidth1.priority = 750;
    [UIView animateWithDuration:3 animations:^{
  // 回复原样
        
        _myImageView.transform = CGAffineTransformIdentity;
        _userView.transform = CGAffineTransformIdentity;
        _passwordView.transform = CGAffineTransformIdentity;
        
        
        
        
        _orLable.transform = CGAffineTransformIdentity;
        [self.view layoutIfNeeded];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
